package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.GoodsBrand;
import com.ecoolex.chinadutyfree.retailer.entity.GoodsBrandExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface GoodsBrandMapper {
    long countByExample(GoodsBrandExample example);

    int deleteByExample(GoodsBrandExample example);

    int deleteByPrimaryKey(Integer brandId);

    int insert(GoodsBrand record);

    int insertSelective(@Param("record") GoodsBrand record, @Param("selective") GoodsBrand.Column ... selective);

    GoodsBrand selectOneByExample(GoodsBrandExample example);

    List<GoodsBrand> selectByExample(GoodsBrandExample example);

    GoodsBrand selectByPrimaryKey(Integer brandId);

    GoodsBrand selectByPrimaryKeyWithLogicalDelete(@Param("brandId") Integer brandId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") GoodsBrand record, @Param("example") GoodsBrandExample example, @Param("selective") GoodsBrand.Column ... selective);

    int updateByExample(@Param("record") GoodsBrand record, @Param("example") GoodsBrandExample example);

    int updateByPrimaryKeySelective(@Param("record") GoodsBrand record, @Param("selective") GoodsBrand.Column ... selective);

    int updateByPrimaryKey(GoodsBrand record);

    int batchInsert(@Param("list") List<GoodsBrand> list);

    int batchInsertSelective(@Param("list") List<GoodsBrand> list, @Param("selective") GoodsBrand.Column ... selective);

    int logicalDeleteByExample(@Param("example") GoodsBrandExample example);

    int logicalDeleteByPrimaryKey(Integer brandId);
}